# Reshoring Study Replication Package
This repository contains replication materials for the "The Political Economy of Reshoring", Clark, Kreps, and Rao (2024).

## Required Software
- R version 4.0 or higher

## Data Files
1. `reshoring.csv`: Wave 1 survey data
   - Contains experimental treatments for China/South Korea and semiconductors/steel
   - Key variables: dv (support for reshoring), china/southkorea (country treatments), semi/steel (industry treatments)

2. `reshoring_qualtrics_num.csv`: Wave 2 survey data
   - Contains experimental treatments for country, job type ("collar color"), and price
   - Key variables: reshoring (support), country (China/Canada), jobs (blue/white collar), price (1100/1250)

3. `reshoring_qualtrics_num2.csv`:
   - Contains corrected globalization variable for Wave 2
   - Used to fix leveling of the globalization variable

4. `ChipsNews.csv`: Media coverage data
   - Time series data of news articles about semiconductors and steel
   - Used to generate trend analysis in Figure A1

## Code Files
The main analysis file is `ReshoringReplicationFinal.R`, which contains:
- Wave 1 analysis (China/SK and semiconductors/steel treatments)
- Wave 2 analysis (China/Canada, blue/white collar, and price treatments)
- Media coverage analysis
- All regression tables and figures


## Expected Outputs
### Tables
- Table 1: Wave 1 treatment effects
- Table 2: Wave 2 treatment effects
- Table A1-A4: Balance and descriptive statistics tables

### Figures
- Treatment effect plots for both waves
- Distribution of support plots (Figures A2, A4)
- Media coverage trends (Figure A3)
- Heterogeneous treatment effects by:
  - Manufacturing sector
  - Race
